//package spitter.repository;
//
//import org.springframework.stereotype.Repository;
//import org.springframework.transaction.annotation.Transactional;
//import spitter.domain.Spitter;
//
//import javax.persistence.EntityManager;
//import javax.persistence.PersistenceContext;
//
//@Repository
//@Transactional
//public class JpaSpitterRepository implements SpitterRepository {
//
//    @PersistenceContext
//    private EntityManager em;
//
//    public void addSpitter(Spitter spitter){
//        em.persist(spitter);
//    }
//
//    public Spitter getSpitterById(Long id){
//        return em.find(Spitter.class,id);
//    }
//
//    public void saveSpitter(Spitter spitter){
//        em.merge(spitter);
//    }
//
//}
